package dubbo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Administrator on 2016/10/24 0024.
 */
public class DubboProvider {
    public static void main(String[] args) {
        try{
            ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/spring-context.xml");
            context.start();
        }catch (Exception e){
            e.printStackTrace();
            System.out.println("== DubboProvider context start error;");
        }

        synchronized (DubboProvider.class){
            while (true){
                try{
                    DubboProvider.class.wait();
                }catch (InterruptedException e){
                    System.out.println("synchronized error");
                }

            }
        }

    }
}
